
			
			<div class="clear"></div> <!-- End .clear -->
			
			<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>Content box</h3>
					
					<ul class="content-box-tabs">
						<li><a href="#tab1" class="default-tab">Table</a></li> <!-- href must be unique and match the id of target div -->
						
					</ul>
					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
					<div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
						
						<div class="notification attention png_bg">
							<a href="#" class="close"><img src="<?php echo IMG;?>icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
							<div>
								This is a Content Box. You can put whatever you want in it. By the way, you can close this notification with the top-right cross.
							</div>
						</div>
						
						<table>
							
							<thead>
								<tr>
								   <th><input class="check-all" type="checkbox" /></th>
								   <th>id</th>
								   <th>轮播图</th>
								   <th>创建时间</th>
								   
								</tr>
								
							</thead>
						 
							<tfoot>
								<tr>
									<td colspan="6">
										<div class="bulk-actions align-left">
											<select name="dropdown">
												<option value="option1">Choose an action...</option>
												<option value="option2">Edit</option>
												<option value="option3">Delete</option>
											</select>
											<a class="button" href="#">Apply to selected</a>
										</div>
										
										<div class="pagination">
											<?php echo $page;?>
										</div> <!-- End .pagination -->
										<div class="clear"></div>
									</td>
								</tr>
							</tfoot>
						 
							<tbody id="newslist">
								<?php foreach($data as $val):?>
								<tr>
									<td><input type="checkbox" /></td>
									<td><a><?php echo $val['category_name'];?></a></td>
									<td><img src="<?php echo $val['path'][2];?>"></td>
									<td><?php echo $val['create_time'];?></td>
									<td>
										
										 <?php $id=$val['id']; echo "<a href='index.php?id={$id}&m=admin&c=banner&v=ban_del&mid=$mid&aid=$aid' title='Delete'>";?><img src="<?php echo IMG;?>icons/cross.png" alt="Delete" /></a>
									</td>
								</tr>
								<?php endforeach ;?>
							</tbody>
							
						</table>
						
					</div> <!-- End #tab1 -->
					

					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			
			
			<script type="text/javascript">
				
				$(".pagination>a").live('click',function(){
					var url = $(this).attr('href');


					$.ajax({
						url : url,

						dataType : 'json',

						success : function(msg){

							$(".pagination").html(msg.page);

							var len = msg.data.length;

							var list = '';

							for(var i=0;i<len;i++){

								if(i%2==0){
									list += '<tr class="alt-row">';
								}else{
									list += '<tr>';
								}
								


								list += '<td><input type=checkbox /></td>';
								list += "<td><a>"+msg.data[i].category_name+"</a></td>";
								list += "<td><img src='"+msg.data[i].path[2]+"'></td>";
								list += "<td>"+msg.data[i].create_time+"</td>";
									
								
								
								list +=	"<td><a href=index.php?id="+msg.data[i].id+"&m=admin&c=banner&v=ban_del title='Delete'><img src='"+msg.imgsrc+"icons/cross.png' alt='Delete' /></a></td>";
								
								list += '<tr>';
									
							}
							$('#newslist').html(list);

							return false;
						},
						error : function(msg){},
						
					});
					return false;
				});



			</script>